package pl.edu.agh.se.carsexpertsystem.fact;

public class ShoppingFact implements Fact {
	
	private ShoppingPreference shoppingPreference = ShoppingPreference.DAILY_LOCAL_SHOP;

	public ShoppingPreference getShoppingPreference() {
		return shoppingPreference;
	}

	public void setShoppingPreference(ShoppingPreference shoppingPreference) {
		this.shoppingPreference = shoppingPreference;
	}
	
	public enum ShoppingPreference {
		DAILY_LOCAL_SHOP("Codziennie w malym sklepie", 0),
		OFTEN_LADYBUG("Czasem w Biedronce", 50),
		RARELY_SUPERMARKET("Rzadko w supermarkecie", 100);
		
		private int value;
		
		private String name;
		
		private ShoppingPreference(String name, int value) {
			this.name = name;
			this.value = value;
		}
		
		public int getValue() {
			return value;
		}

		@Override
		public String toString() {
			return name;
		}
	}
}
